package com.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/demo")
public class WebController {
    @RequestMapping("/index.api")
    public String index(String name, HttpServletRequest request, HttpServletResponse response) {
        //在本机上http://localhost:8081/SpringMVCBasic_war/demo/index.api即可让控制台输出aaa
        System.out.println("aaaa");
        return "null";
    }
}
